-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Help with choosing class #2644
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
To answer your second question: https://github.com/olikraus/u8g2/wiki/u8g2setupcpp#buffer-size TL;DR: RAM vs CPU tradeoff by limiting how many pixels are stored in memory. You only can use |
Thanks. I tried both options. I guess I will just use the old U8Glib, I just need to add wiring_private.h manually. I'd really prefer to use the supported version of the library though. On the diagram above there is an association This is how I translate constructor parameters to the pins in the diagram:
|
For reference, this is code which works with U8glib.h (straight from the example on the dfrobot site:
|
DC or CD should be the same (it meens DATA/COMMAND or COMMAND/DATA), so the mapping is correct and the constructor should be:
So the constructor should be:
BTW: in the example above, you have used the 3W SPI constructor: This will not work at all, because the display is (probably) configured in 4W SPI mode. |
Not sure what example do you refer to, from my OP with u8g2 or the last message from Mar 13 with old library. The latter works perfectly well (it's running right now on my desk). I've already tried U8G2_ST7565_NHD_C12864_1_4W_SW_SPI, it doesn't work. Screen is just blank:
|
Uh oh!
There was an error while loading. Please reload this page.
I have this Arduino shield: https://wiki.dfrobot.com/LCD12864_Shield_SKU_DFR0287
attached to Arduino R4 WiFi board.
I can't figure out which class should I use.
According to docs, it uses D7, D8, D9, D10, D11, D13, A0 pins from which D7 is for backlit and A0 for joystick.
I use VS Code with PlatformIO. I tried this (and several other constructors):
But it doesn't work (display is blank).
I can see that
have exact same signature, is there any difference among them?
The text was updated successfully, but these errors were encountered: